﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Honestysoft.Baseframework.WebUI;
using Honestysoft.DictionaryHelper;
using Honestysoft.BaseObject;

namespace Honestysoft.Financing.WebUI.Module.Project
{
    public partial class ProjectCategory_View : BasePage
    {
        protected override void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);
            if (!IsPostBack)
            {
                Bind();
            }
        }
        /// <summary>
        /// 绑定页面
        /// </summary>
        private void Bind()
        {
            Sys_Dictionary obj = new BaseBusinessLogic<Sys_Dictionary>().GetEntity(Request.QueryString["ID"]);
            if (obj == null) { return; }
            _SortCode = obj.SortCode.ToString();
            _DictName = obj.DictName;
            _IsValid = ScriptHelper.Image.GetBooleanImage(obj.IsValid);
            _IsDefault = ScriptHelper.Image.GetBooleanImage(obj.IsDefault);
            _Remark = obj.Remark.Replace("\n", "<br/>").Replace(" ", " ");
        }

        /// <summary>
        /// 标识
        /// </summary>
        protected string _ID = "";
        /// <summary>
        /// 字典类别
        /// </summary>
        protected string _CategoryID = "";
        /// <summary>
        /// 序号
        /// </summary>
        protected string _SortCode = "";
        /// <summary>
        /// 条目名称
        /// </summary>
        protected string _DictName = "";
        /// <summary>
        /// 值
        /// </summary>
        protected string _DictValue = "";
        /// <summary>
        /// 是否有效
        /// </summary>
        protected string _IsValid = "";
        /// <summary>
        /// 是否默认
        /// </summary>
        protected string _IsDefault = "";
        /// <summary>
        /// 备注
        /// </summary>
        protected string _Remark = "";
    }
}